package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tjetc.enums.EnumSex;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
/*
* 用户
* */
@Data
public class User {
    //用户id
    private Integer id;
    //用户姓名
    private String name;
    //用户电话
    private String phone;
    //用户性别
    private EnumSex sex;
    //昵称
    private String username;
    //密码
    private String password;
    //头像
    private String image;
    //邮箱
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
